/*
 * DelayBlock.h
 *
 *  Created on: 25.04.2013
 *      Author: Lapchinskiy
 */

#ifndef DELAYBLOCK_H_
#define DELAYBLOCK_H_

#include "Block.h"

class DelayBlock: public Block
  {
public:
  DelayBlock(uint32_t delayTime);
  ErrorCode setNexBlock(Block* nextBlock);
  Block* step(void);
  ~DelayBlock();
private:
  uint32_t timeToExit;
  uint32_t delayTime;
  Block *nextBlock;
  ErrorCode errorCode;
  bool firstStep;
  };

#endif /* DELAYBLOCK_H_ */
